package com.liaoyoule.multiple;

import java.util.HashMap;

/**
 * Created by cdyoue on 2017/1/23.
 */
public class DefaultProfileUtil {
//    private static final String SPRING_PROFILE_DEFAULT = "spring.profiles.default";
//
//    public DefaultProfileUtil() {
//    }
//
//    public static void addDefaultProfile(SpringApplication app) {
//        HashMap defProperties = new HashMap();
//        defProperties.put("spring.profiles.default", "dev");
//        app.setDefaultProperties(defProperties);
//    }
//
//    public static String[] getActiveProfiles(Environment env) {
//        String[] profiles = env.getActiveProfiles();
//        return profiles.length == 0?env.getDefaultProfiles():profiles;
//    }
}
